home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / contrib / pdcurs22 / samples / makefile < prev    next >
Encoding:
Makefile  |  1995-02-21  |  905 b   |  62 lines

  1. #
  2. # GNU makefile
  3. #
  4. CC       = gcc
  5. INCL     = 
  6. CFLAGS   = -O -I../include
  7. LINK     = gcc
  8. STRIP    = strip
  9. BIND     = coff2exe
  10. RM       = del
  11. LFLAGS   = -L../lib
  12. LIBS     = -lcurso -lpano
  13. PROGS    = firework.exe newdemo.exe testcurs.exe tuidemo.exe xmas.exe ptest.exe
  14.  
  15. all: $(PROGS)
  16.  
  17. %.exe : %
  18.     $(STRIP) $<
  19.     $(BIND) $<
  20.  
  21. % : %.o
  22.     $(LINK) $(LFLAGS) -o $@ $< $(LIBS)
  23.  
  24. firework.exe : firework
  25.  
  26. firework : firework.o
  27.  
  28. newdemo.exe : newdemo
  29.  
  30. newdemo : newdemo.o
  31.  
  32. testcurs.exe : testcurs
  33.  
  34. testcurs : testcurs.o
  35.  
  36. tuidemo.exe : tuidemo
  37.  
  38. tuidemo : tuidemo.o tui.o
  39.     $(CC) $(LFLAGS) -o $@ tuidemo.o tui.o $(LIBS)
  40.  
  41. tuidemo.o : tuidemo.c tui.h
  42.  
  43. tui.o : tui.c tui.h
  44.  
  45. ptest.exe : ptest
  46.  
  47. ptest : ptest.o
  48.  
  49. xmas.exe : xmas
  50.  
  51. xmas : xmas.o
  52.  
  53. clean:
  54.     -$(RM) firework
  55.     -$(RM) newdemo
  56.     -$(RM) ptest
  57.     -$(RM) testcurs
  58.     -$(RM) tuidemo
  59.     -$(RM) xmas
  60.     -$(RM) *.o
  61.     -$(RM) *.exe
  62.